﻿using System;
using Looptribe.Moodlin8.Model;
using Looptribe.WinRT.Toolkit.Controls;

namespace Looptribe.Moodlin8.ViewModel
{
    public class EventWrapper : Wrapper<Event>, ICalendarEvent
    {
        private readonly DateTime _dateTime;
        public DateTime DateTime { get { return _dateTime; } }

        public EventWrapper(Event e) : base(e)
        {
            _dateTime = e.TimeStart;
        }

        public string Name
        {
            get { return WrappedObject.Name; }
        }

        public string Type
        {
            get { return WrappedObject.EventType; }
        }
    }
}
